# Compatibility
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)

# Project name
PROJECT (time)

# Project version
ENABLE_TESTING()

INCLUDE("${ROOT_DIR}/test/lib/test.cmake" OPTIONAL RESULT_VARIABLE TESTING_ENABLED)

SET (CMAKE_BUILD_TYPE Release)

SET (PROJECT_EXECUTABLE ${PROJECT_NAME})
ADD_EXECUTABLE (${PROJECT_EXECUTABLE} main.cpp)

IF (NOT ("${TESTING_ENABLED}"STREQUAL NOTFOUND))
    CREATE_TESTS()
ENDIF()